﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface IMatchBookSourceSpider
    {
        /// <summary>
        /// 爬取书源地址
        /// </summary>
        /// <param name="sourceDto">书籍信息</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task<bool> CrawBookSourceUrlAsync(CrawBookSourceDto sourceDto, CancellationToken cancellationToken);
    }
}
